package com.intelligentcar.springboot.mapper;

import com.intelligentcar.springboot.bean.Log;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LogMapper {
    //记录日志
    public int addLog(@Param(value = "logTime") String logTime,
                      @Param(value = "logType") String logType,
                      @Param(value = "logUser") String logUser,
                      @Param(value = "logContent") String logContent);
    //查看日志记录表中的人员
    public List<Log> user ();
    //根据姓名查看日志表
    public List<Log> select(Log log,RowBounds rowBounds);
    //根据姓名查看日志表
    public List<Log> quanbu(RowBounds rowBounds);
    //个数
    public int count ();
    //个数
    public int count1 (Log log);
}
